package com.wu.pojo.reqeust.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class LoginRequest implements Serializable {
    private static final long serialVersionUID = 6205515714393688845L;

    @ApiModelProperty(value = "登录用户名")
    @NotBlank(message = "用户名为空")
    private String username;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码为空")
    private String password;

    @ApiModelProperty(value = "数字验证码")
    @NotBlank(message = "请输入验证码")
    @Size(min = 4, max = 4, message = "请输入正确的4位验证码")
    private String codeNum;
}
